<?php

use yii\helpers\Html;
use yii\widgets\DetailView;
use common\models\kaoguobao\Order;

/* @var $this yii\web\View */
/* @var $model common\models\AccountWechat */

$this->title = '订单ID：'.$model->order_id. '，上传的凭证';
$this->params['breadcrumbs'][] = ['label' => 'Account Wechats', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="account-wechat-view">

    <p>
        <?= Html::a('同意理赔',
            ['voucher-handle', 'id' => $model->order_id, 'orderStatus' => Order::ORDER_STATUS_HANDLED],
            ['class' => 'btn btn-primary']) ?>

        <?= Html::a('拒绝理赔',
            ['voucher-handle', 'id' => $model->order_id, 'orderStatus' => Order::ORDER_STATUS_REFUSE],
            ['class' => 'btn btn-danger']) ?>
    </p>

    <?= DetailView::widget([
        'model' => $model,
        'attributes' => [
            'order_id',
            ['attribute' => 'card_img_url','format'=> ['image',['width'=>'450','height'=>'380']]],
            ['attribute' => 'result_img_url','format'=> ['image',['width'=>'450','height'=>'380']]],
            'remarks',
            'created_at:date',
        ],
    ]) ?>

</div>

